<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-3.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:tiles="http://www.thymeleaf.org">
<head>
<title tiles:include="title">SecureMail:</title>
<link rel="icon" type="image/x-icon"
	th:href="@{/resources/img/favicon.ico}"
	href="../resources/img/favicon.ico" />

<style type="text/css">
/* Wrapper for page content to push down footer */
#wrap {
	min-height: 100%;
	height: auto !important;
	height: 100%;
	/* Negative indent footer by it's height */
	margin: 0 auto -60px;
}

#push, #footer {
	height: 60px;
}

#footer {
	text-align: center;
	background-color: #f5f5f5;
}

/* Lastly, apply responsive CSS fixes as necessary */
@media ( max-width : 767px) {
	#footer {
		margin-left: -20px;
		margin-right: -20px;
		padding-left: 20px;
		padding-right: 20px;
	}
}

.navbar {
	background-color: #f5f5f5;
}

a {
	color: green;
}
</style>

<link rel="stylesheet"
	href="resources/js/bootstrap/css/bootstrap.min.css"></link>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="resources/js/html5/html5.js"></script>
    <![endif]-->

<script tiles:replace="head"></script>
</head>


<body>

	<div id="wrap">
		<nav class="navbar navbar-default navbar-static-top">
			<div class="navbar-inner">
				<div class="container">
					<div class="navbar-header">
						<a class="navbar-brand" href="#">Sample</a>
					</div>
					<div>
						<div th:if="${#httpServletRequest.remoteUser != null}">
							<form class="navbar-form navbar-right" th:action="@{/logout}"
								method="post">
								<input type="submit" value="Log out" />
							</form>
							<p class="navbar-text navbar-right"
								th:text="${#httpServletRequest.remoteUser}">sample_user</p>
						</div>
					</div>
				</div>
			</div>
		</nav>
		<!-- Begin page content -->
		<div class="container">
			<div class="alert alert-success" th:if="${globalMessage}"
				th:text="${globalMessage}">Some Success message</div>
			<div tiles:substituteby="content">Fake content</div>
		</div>

		<div id="push">
			<!--  -->
		</div>
	</div>

	<div id="footer" class="navbar-fixed-bottom">
		<p class="muted credit">foot @1233.12312.2312 addr.</p>
	</div>
</body>
</html>